 
  <?php


$urlAction = 'pesanan/tambah' ;


?>
 
 
 
 <div class="col-md-6">
<div class="box box-primary">
                                <div class="box-header">
                                    <h3 class="box-title">Form Pesanan</h3>
                                </div><!-- /.box-header -->
                                <!-- form start -->
                                <form role="form" method="post" action="<?php echo base_url() . $urlAction ; ?>">
                                    <div class="box-body">
									
									 <div class="form-group">
                                            <label >Nama Barang</label>
                                            <select  id="myselect" name ="id_barang" style="width:400px" >
											<?php foreach ( $barang->result() as $row ) { ?> 
												<option value="<?php echo $row->id_barang ; ?>" ><?php echo $row->nama ; ?></option>
											<?php 
											} ?>
											</select>
                                        </div>
										
										 <div class="form-group">
                                            <label >Nama Pelanggan</label>
                                            <select  id="myselect" name ="nomer_konsumen" style="width:400px" >
											<?php foreach ( $konsumen->result() as $row ) { ?> 
											<option value="<?php echo $row->id_konsumen ; ?>"  ><?php echo $row->nama ; ?></option>
											<?php 
											} ?>
											</select>
                                        </div>
										<div class="form-group">
                                            <label >Jenis Pembayaran</label>
                                            <select  id="pembayaran" name ="id_jenis_pembayaran" style="width:400px" >
											
											<option value="1">Lunas </option>
											<option value="2">Kredit Umum </option>
											<option value="3">Kredit Potongan</option>
											
											</select>
                                        </div>
														
							<div class="form-group">
                                            <label >Jumlah Angsuran</label>
                                            <input type="text" class="form-control" value="" name="jumlah_angsuran" id="angsuran" placeholder="masukan angsuran jika jumlah kusus" disabled="true">
                                        </div>		

<div class="form-group">
                                            <label >Jumlah Pesanan</label>
                                            <input type="text" class="form-control" value="" name="jumlah_pesanan" id="wilayah" placeholder="masukan jumlah pesanan">
                                        </div>											
							
										
                                    </div><!-- /.box-body -->

                                    <div class="box-footer">
                                        <button type="submit" class="btn btn-primary">Submit</button>
										  <a href="<?php echo base_url()?>pesanan/daftar_pesanan"><i name="iconposition" class="btn btn-success" title='Kembali' alt='Kembali'   > Kembali</i></a>
                                    </div>
                                </form>
                            </div><!-- /.box -->
 </div>